package commands;

import items.Item;

import java.util.ArrayList;

public class RemoveItem extends Command
{
  private ArrayList<Item> itemList;
  private Item item; 
  
  public RemoveItem(ArrayList<Item> itemList, Item item)
  {
    this.itemList = itemList;
    this.item = item;
  }
  
  public String run()
  {
    itemList.remove(item);
    return "";
  }
}
